package com.sofar.mybatisplus.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sofar.mybatisplus.entity.TblProduct;
import com.sofar.mybatisplus.mapper.TblProductMapper;
import com.sofar.mybatisplus.service.TblProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (TblProduct)表服务实现类
 *
 * @author makejava
 * @since 2022-08-31 09:06:46
 */
@Service("tblProductService")
public class TblProductServiceImpl extends ServiceImpl<TblProductMapper,TblProduct> implements TblProductService {
    @Resource
    private TblProductMapper tblProductMapper;


    @Override
    @DS("master")
    public IPage<TblProduct> queryByPage(TblProduct tblProduct, IPage<TblProduct> iPage) {
        return tblProductMapper.queryAllByPage(tblProduct, iPage);
    }
}
